<?php
	$fields = array
	(
		'datetime'=>array
		(
			'title'=>LANG_DATETIME,
			'url'=>$this->name,
			'id'=>'id',
		),
		
		'action_name'=>array
		(
			'title'=>LANG_ACTION,
			'filter' => true,
			'id'=>'action_id',
			'model'=>'systemactions'
		),
			
		'user_login'=>array
		(
			'title'=>LANG_LOGIN,
			'url'=>'users',
			'filter' => true,
			'id'=>'user_id',
			'model'=>'users',
			'proc'=>'sp_users_list'
		),
		
		'table_name'=>array
		(
			'title'=>LANG_TABLE_NAME,
			'id'=>'table_id',
			'model'=>'systemTables',
			'fast_search_filter' => true,
			'translate'=>true
		),
		
		'column_name'=>array
		(
			'title'=>LANG_TABLE_COLUMN_NAME,
		),
		
		'row_id'=>array
		(
			'title'=>LANG_ROW_ID,
			'filter' => true,
		),
		
		'value_old'=>array
		(
			'title'=>LANG_OLD_VALUE,
			'filter' => true,
		),
		
		'value'=>array
		(
			'title'=>LANG_VALUE,
			'filter' => true,
		),
		
		'comment'=>array
		(
			'title'=>LANG_COMMENT,
			'filter' => true,
			'in_grid'=>false
		),
	
		'datetime_from'=>array
		(
			'title'=>LANG_DATETIME.' ('.LANG_FROM.')',
			'filter' => true,
			'in_grid'=>false
		),
		
		'datetime_until'=>array
		(
			'title'=>LANG_DATETIME.' ('.LANG_UNTIL.')',
			'filter' => true,
			'in_grid'=>false
		),
	
	);	

	//header
	$this->helpers->htmlx->MenuText1(LANG_LOGS.': '.LANG_LIST, "list.gif");

	//grid settings
	$grid_settings['use_mass_operations'] = false;
	
	//logs list
	$this->helpers->grids->Grid($this->data[$this->name], $fields, 1, 0, 1, $grid_settings);
?>